package com.rustic.server.vo.user;

import cn.hutool.core.bean.BeanUtil;
import com.rustic.server.po.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 表[user]对应VO类
 *
 * @author auto
 */

@Data
public class UserWebVO {

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名", dataType = "String")
    private String name;

    /**
     * 角色id(逗号分隔)
     */
    @ApiModelProperty(value = "角色id(逗号分隔)", dataType = "String")
    private String roleIds;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像", dataType = "String")
    private String avatar;

    /**
     * 头衔
     */
    @ApiModelProperty(value = "头衔", dataType = "String")
    private String title;

    /**
     * 企业/机构
     */
    @ApiModelProperty(value = "企业/机构", dataType = "String")
    private String enterprise;

    /**
     * 企业/机构(英文)
     */
    @ApiModelProperty(value = "企业/机构(英文)", dataType = "String")
    private String enterpriseEn;

    /**
     * 职位
     */
    @ApiModelProperty(value = "职位", dataType = "String")
    private String job;

    /**
     * 职位(英文)
     */
    @ApiModelProperty(value = "职位(英文)", dataType = "String")
    private String jobEn;

    /**
     * 关注的活动数
     */
    @ApiModelProperty(value = "关注的活动数", dataType = "long")
    private Long activityCount;

    /**
     * 关注的嘉宾数
     */
    @ApiModelProperty(value = "关注的嘉宾数", dataType = "long")
    private Long guestCount;

    /**
     * 粉丝数
     */
    @ApiModelProperty(value = "粉丝数", dataType = "long")
    private Long fanCount;

    public UserWebVO(User user) {
        if (user != null) {
            BeanUtil.copyProperties(user, this);
        }
    }
}
